import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const createRouter = () =>
  new Router({
    routes: [
      // {
      //   path: '/',
      //   name: 'home',
      //   redirect: '/design/kpm/1'
      // },
      // {
      //   path: '/design/kpm/:id',
      //   name: 'design-kpm',
      //   // component: () => import('./views/Design-kpm.vue')
      //   component: () => import('./views/index1.vue')
      // },
      {
        path: '/',
        name: 'FlowEditorVue',
        // component: () => import('./views/Design-kpm.vue')
        component: () => import('./views/index.vue')
      }
    ]
  })

const router = createRouter()

export default router
